package com.ayf.payment.game.api.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 批量付款文件
 */
@Data
@Table(name = "g_merchant_batch_pay_file")
public class MerchantBatchPayFile implements Serializable {
    /**
     * 主键 系统生成
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 商户ID
     */
    @Column(name = "merchant_id")
    private Integer merchantId;

    /**
     * 文件名称
     */
    @Column(name = "file_name")
    private String fileName;

    /**
     * 文件路径ID
     */
    @Column(name = "file_path")
    private String filePath;

    /**
     * 批次号
     */
    @Column(name = "batch_no")
    private String batchNo;

    /**
     * 付款总笔数
     */
    @Column(name = "total_count")
    private Integer totalCount;

    /**
     * 付款总金额 单位:元 保留2位小数
     */
    @Column(name = "total_amt")
    private BigDecimal totalAmt;

    /**
     * 文件状态 0-受理中 1-受理失败 2-受理成功
     */
    @Column(name = "`status`")
    private Integer status;

    /**
     * 文件生成日期，格式:yyyyMMdd
     */
    @Column(name = "create_time_index")
    private Integer createTimeIndex;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 最后更新时间
     */
    @Column(name = "last_update_time")
    private Date lastUpdateTime;

    private static final long serialVersionUID = 1L;
}